package com.qingke.p1;

public class Circle extends Shape{
	private double radius=1.0;
	public Circle(){
		
	}
	public Circle(double radius){
		
		this.radius=radius;
	}
	public Circle(double radius,String color,boolean filled){
		super(color,filled);
		this.radius=radius;
	}
	public double getRadius() {
		return radius;
	}
	public void setRadius(double radius) {
		this.radius = radius;
	}
	public double getArea() {
		return Math.PI*radius*radius;
	}
	public double getPermieter() {
		return 2*Math.PI*radius;
	}
	public String toString() {
		return "Circle [radius=" + radius + "]";
	}
	
	
}
